package cn.tedu.submarine;

import javax.swing.*;

public class Mine extends SeaObject{
    public Mine(int x,int y){
        super(11,11,x,y,1);
    }

    public ImageIcon getImage(){
        return Images.mine;
    }

    public  void move(){
        y-=speed;
    }

    public boolean outOfBounds(){
        return this.y<=150-this.height;
    }
}
